<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en" class="no-js">
 <head> 
  <meta charset="utf-8" /> 
  <title>
	<?php if(empty($catitem)): ?>分类大全_<?php echo ($name); ?>
	<?php else: ?>
	<?php echo ($catitem["fcname"]); ?>_<?php echo ($name); endif; ?>
	</title> 

  <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta content="{key}" name="description" />
<meta content="{des}" name="author" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="<?php echo (TEMPS); ?>/css/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo (TEMPS); ?>/css/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo (TEMPS); ?>/css/css.css" rel="stylesheet" type="text/css"/>
<script src="__ROOT__/Public/js/jquery.js"></script>
<script src="__ROOT__/Public/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="__ROOT__/Public/css/yuwei.css">
<link rel="stylesheet" href="<?php echo (TEMPS); ?>/css/common.css">
<script type="text/javascript" src="<?php echo (TEMPS); ?>/js/common.js"></script>
</head>
<body>
<!-- 头部开始 -->
<div class="headerLine"></div>
    <header>
    	<div class="header">
	    	<div class="left">
	    		<span>订餐热线 :<b>13879144915</b> </span>
	    		<span>服务时间 :<b>08:00-17:00</b> </span>
	    	</div>
	    	<div class="right">
<!-- 判断,如果用户uid存在,就说么已经登陆 -->
<?php if(empty($uid)): ?><a href="<?php echo U('Public/register/');?>" rel="nofollow">注册</a>
<a rel="nofollow" href="/index.php?m=public&a=login" >登录</a>
<a href="<?php echo U('Member/index/');?>" rel="nofollow">我的外卖</a>
<?php else: ?>    
<a href="<?php echo U('Member/index/');?>"><i class="fa fa-user-md"></i> <?php if(empty($nickname)): echo ($username); else: echo ($nickname); endif; ?></a></li>
<a href="<?php echo U('Member/order/');?>" rel="nofollow"><i class="fa fa-list"></i> 我的外卖</a>
<a href="<?php echo U('Public/logout/');?>" rel="nofollow"><i class="fa fa-power-off"></i> 退出</a><?php endif; ?>
    	</div>
    </header>
 <!-- 头部结束 -->
<nav class="navbar bs-docs-nav" role="navigation"> 
<div class="navhead w120">
	<ul class="nav navbar-nav ulpast">
      <li><a href="./">网站首页</a></li>
	  <li><a href="<?php echo U('Gift/index/');?>">礼品兑换</a></li>
	  <li><a href="<?php echo U('List/index/',array('id'=>19));?>">今日推荐</a></li>
     	<?php if(empty($uid)): ?><li><a href="<?php echo U('Members/index/');?>">订单管理</a></li>
			<?php else: ?> 
			<li><a href="<?php echo U('Member/order/');?>">我的订单</a></li><?php endif; ?>
	  <li><a href="<?php echo U('Article/s/',array('id'=>37));?>">关于我们</a></li>
	  <li><a href="<?php echo U('Article/s/',array('id'=>31));?>">联系我们</a></li>
	  <li><a href="<?php echo U('Article/s/',array('id'=>36));?>">服务宗旨</a></li>
	  <li><a href="<?php echo U('Message/index/');?>">给我留言</a></li>
	   <div class="lines">
	   	<span class="hover">1</span>
	   </div>
    </ul>
 </div>
  </div><!-- /.navbar-collapse -->
</nav>
<script type="text/javascript">
	$(document).ready(function() {
		lens =$('.ulpast').find('li').length;
		$('.ulpast').find('li').hover(function() {
			w = $(this).width();
			z = $(this).index();
			$('.lines .hover').stop().animate({left: w*z}, 500)
		}, function() {
			
		});
	});
</script>
 <!-- 全局左侧导航菜单 -->
  <div class="col-md-2 hidden-xs" id="menus" style='width:180px'> 
	<img width='150' src='<?php echo (TEMPS); ?>/images/doctor.png' style='z-index:999;position:relative;top:5px;'>
     <ul class="list-unstyled left-border" style="position:relative">
     <div class="topicon" style="text-align:center">
     	
     </div>
      <?php if(is_array($foodcatlist)): $i = 0; $__LIST__ = array_slice($foodcatlist,0,7,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub): $mod = ($i % 2 );++$i;?><li> <a href="<?php echo U('List/index','id='.$sub['fcid']);?>" class="list-group-item"><span style="margin-left:30px;"><?php echo ($sub["fcname"]); ?></span><span class="fa fa-caret-right pull-right"></span></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
      <div class="icon">
       	嗨
       </div>
     </ul> 
    </div> 
 <!-- 全局左侧导航菜单 -->

<div class="h10"></div>






 
  <div class="mianbao w120">
    <ol class="breadcrumb">
      <li><a href="#">首页</a></li>
      <li><a href="#">菜单分类</a></li>
      <li class="active"><?php echo ($catitem["fcname"]); ?></li>
    </ol>
  </div>
  <!-- begin container --> 
  <div class="container"> 
   <div class="row"> 
    <div class="col-md-12 hidden-sm"> 
     <div class="row top5"> 
      <?php if(is_array($foodlists)): $i = 0; $__LIST__ = $foodlists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="col-sm-3 simpleCart_shelfItem row-padding cakelist"> 
        <div class="thumbnail i_list"> 
         <?php if(($islogin) == "1"): ?><a data-toggle="modal" href="<?php echo U('Index/show','id='.$vo['fid']);?>" data-target="#modal"> 
           <?php else: ?> </a>
          <a href="<?php echo U('Product/index','id='.$vo['fid']);?>"> </a><?php endif; ?>
         <a href="<?php echo U('Product/index','id='.$vo['fid']);?>" class="imgtopa"> <img src="<?php echo ($url); echo ($vo["fpic"]); ?>" /> </a> 
         <div class="caption"> 
          <h3 class="item_name"><?php echo ($vo["fname"]); ?></h3> 
          <input value="1" class="item_Quantity" type="hidden" /> 
          <p><span class="pull-left item_price" style="color:#FF7700;font-weight:600;font-size:14px"> ￥<?php echo ($vo["fprice"]); ?> </span> <span class="pull-right "><a href="javascript:;" class="btn btn-warning btn-sm item_add"><i class="fa fa-shopping-cart"></i> 加入购物车</a> </span> </p> 
          <div class="clearfix"></div> 
         </div> 
        </div> 
       </div><?php endforeach; endif; else: echo "" ;endif; ?> 
     </div> 
     <ul class="pagination">
       <?php echo ($page); ?> 
     </ul> 
    </div> 
   
   </div> 
  </div>
  <!--row-->  
  <!-- begin container --> 
  <div class="footer">

<footer>
 	<div class="message">
 		<li>
 			<a href="<?php echo U('Article/s/',array('id'=>39));?>" target='_blank'>小店介绍</a>|
 			<a href="<?php echo U('Article/s/',array('id'=>37));?>" target='_blank'>关于我们</a>|
 			<a href="<?php echo U('Article/s/',array('id'=>40));?>" target='_blank'>加盟须知</a>|
 			<a href="<?php echo U('Article/s/',array('id'=>41));?>" target='_blank'>小店招聘</a>
 		</li>
 		<li>
 			<a href='http://weibo.com/u/2526298841' target='_blank'><span> @2014  甜蜜爱恋  All rights reserved</span> </a>
 		</li>
 		<li>
 			<span> Weicake | 赣ICP备11007040号-4</span>
 		</li>
 	</div>
 </footer>
    
	


	
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">提示</h4>
      </div>
      <div class="modal-body">
       
   <p style="text-align:center">   
   <a href="<?php echo U('Public/register/');?>" class="btn btn-danger">注册成为会员更多优惠</a>
　　　　　
   <a href="<?php echo U('Cart/index/');?>" class="btn btn-default">不注册直接下单</a>

  </p>
  



      </div>
       
	 
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->	
 <script src="__ROOT__/Public/js/simpleCart.min.js"></script> 
	 <link href="<?php echo (TEMPS); ?>/css/cart-min.css" rel="stylesheet" type="text/css"/>
<script>

simpleCart({
 	currency: "JPY",
	shippingQuantityRate: 0,
	shippingTotalRate: 0,
	 shippingFlatRate: <?php echo ($pspay); ?>,
	cartColumns: [
{ attr: "name" , label: "商品" } ,
//{ attr: "price" , label: "单价", view: 'currency' } ,
{ view: "decrement" , label: false , text: "-" } ,
{ attr: "quantity" , label: "数量" } ,
{ view: "increment" , label: false , text: "+" } ,
{ attr: "total" , label: "总价", view: 'currency' } ,
//{ view: "remove" ,  label: ''}
]
  });
  
 



</script>
 <script>
   
    $("div[role='dialog']").on("show.bs.modal", function() {  
        // 具体css样式调整  
        $(this).css({  
            "display": "block",  
            "margin-top": function() {  
                return ($(this).height() / 3);  
            }  
        });  
    });  

 </script>		
	
		<script type="text/javascript">

	
	
simpleCart.bind( "update" , function(){

 if(simpleCart.total()<=0){
 $("#cartSubmit").hide();
 $("#cartIsEmpty").show();
 $("#cartCha").hide();
 }
 else{
	 if( <?php echo ($startpay); ?>- simpleCart.total() <=0){
      $("#cartSubmit").show();
	$("#cartIsEmpty").hide();
	  $("#cartCha").hide();
    } else {
	$("#cartCha").show();
	$("#cartSubmit").hide();
    $("#cartIsEmpty").hide();
   var showimg = <?php echo ($startpay); ?>- simpleCart.total();
$("#cha").text(showimg);
    }}
 
});



	
	 </script>
	
	
	
	
	

<div class="container navbar-fixed-bottom visible-xs" style="background-color:#FFF;">
  <div class="row ">
  
       <div class="col-md-3 col-xs-3"><a class="icon-btn" href="<?php echo U('Index/index/');?>">
								<i class="fa fa-home"></i>
								<div>首页</div>
								
							</a></div>
	 <div class=" col-xs-3">
	 <div class="btn-group dropup">
	 <a class="icon-btn dropdown-toggle" data-toggle="dropdown" >
								<i class="fa fa-th-large"></i>
								<div>菜品分类</div>
								
							</a>
							<ul class="dropdown-menu" style="min-width:245px;" role="menu">
							<?php if(is_array($foodcatlist)): $i = 0; $__LIST__ = $foodcatlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a class="btn" href="<?php echo U('index/flist/','id='.$vo['fcid']);?>"><?php echo ($vo["fcname"]); ?></a></li>
							 <li class="divider"></li><?php endforeach; endif; else: echo "" ;endif; ?>
							
                             </ul>
							</div>
							
							</div>
	<div class="col-md-3 col-xs-3">
	 <div class="btn-group dropup">
	 <a class="icon-btn" href="<?php echo U('Member/index/');?>">
								<i class="fa fa-user"></i>
								<div>我的订单</div>
								
							</a>
						
							</div>
							
							</div>
	 
	 
	 
	
	 <div class="col-md-3 col-xs-3">
	 <a class="icon-btn" href="<?php echo U('Cart/index/');?>">
								<i class="fa fa-shopping-cart"></i>
								<div>购物车</div>
								<span class="badge" > <span class="simpleCart_quantity "></span>
		</span>
							</a>
							
	 </div>
  
   <!-- <div class="col-md-3 col-xs-3"><a class="icon-btn" href="<?php echo U('Home/map/');?>">
								<i class="fa fa-map-marker"></i>
								<div>店铺位置</div>
								
							</a></div>-->
  </div>

</div>
 
   <div class="col-md-3 col-sm-6" id="cart"> 
     <div style="background-color:#FF7700" class="panel panel-cart top5"> 
      <div class="panel-heading"> 
       <h4 class="panel-title"> <a href="#collapseOne" id="shala"> <i class="fa fa-shopping-cart" id='cates'></i> 购物车 <i class="fa fa-angle-down"></i> <span class="simpleCart_quantity pull-right">0</span> </a> </h4> 
      </div> 
      <div class="panel-collapse collapse in" id="collapseOne"> 
       <div style="padding:5px;" class="panel-body"> 
        <div style="max-height:250px;overflow:auto;"> 
         <div class="simpleCart_items"> 
          <div>
           <div class="headerRow">
            <div class="item-name">
             商品
            </div>
            <div class="item-price">
             单价
            </div>
            <div class="item-decrement"></div>
            <div class="item-quantity">
             数量
            </div>
            <div class="item-increment"></div>
            <div class="item-total">
             总价
            </div>
            <div class="item-remove">
             操作
            </div>
           </div>
          </div>
         </div> 
        </div> 
        <div style="clear:left"></div> 
        <hr class="top5" /> 
        <div class="count">
          数量: 
         <span class="simpleCart_quantity">0</span>
        </div> 
        <div class="ship">
          配送费: 
         <span class="simpleCart_shipping">yen0</span> (含打包费)
        </div> 
        <p class="grand"> 合计总额: <span class="simpleCart_grandTotal">yen0</span></p> 
        <p align="center"><span style="margin-right:20px;" class="pull-right"><a href="javascript:;" class="simpleCart_empty">清空</a> </span> 
         <?php if(empty($uid)): if(($isorder) == "0"): ?><a rel="nofollow" class="btn btn-warning" href="/index.php?m=public&amp;a=login&amp;reurl=&lt;php&gt;echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);&lt;/php&gt;"><i class="fa fa-shopping-cart"></i> 立刻结算</a> 
           <?php else: ?> 
           <a data-toggle="modal" data-target="#myModal" class="btn btn-warning"><i class="fa fa-shopping-cart"></i> 立刻结算</a><?php endif; ?> 
          <?php else: ?> 
          <a href="<?php echo U('Cart/index/');?>" class="btn btn-warning"><i class="fa fa-shopping-cart"></i> 立刻结算</a><?php endif; ?> </p> 
       </div> 
      </div> 
     </div> 
    </div> 



<style type="text/css">
.panel-body {
  height: 0px;
  overflow: hidden;
}
.thumbnail{
  transition:all 0.5s ease-in-out 0.1s;
  border-radius: 10px;
  box-shadow: 0px 3px 5px #eee;
  cursor: pointer;
}
.thumbnail:hover{
  border:2px solid #CD6665;
  box-shadow: 0px 3px 5px #ccc;
}
.i_list h3{text-align: left;border-bottom: 1px solid #eee; padding-bottom: 5px}
.panel{margin-bottom: 0px}
#cart{right:-230px;}
</style> 
  <!-- Modal --> 
  <div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 
  </div>
  <style type="text/css">
.panel-body {
  height: 0px;
  overflow: hidden;
}
.thumbnail{
  transition:all 0.5s ease-in-out 0.1s;
  border-radius: 10px;
  box-shadow: 0px 3px 5px #eee;
  cursor: pointer;
}
.thumbnail:hover{
  border:2px solid #CD6665;
  box-shadow: 0px 3px 5px #ccc;
}
.simpleCart_shelfItem{
  float: left;
}
.i_list h3{text-align: left;border-bottom: 1px solid #eee; padding-bottom: 5px}
.panel{margin-bottom: 0px}
#cart{right:-230px;}
</style>
<script type="text/javascript">
 $('.item_add').click(function() {
    h = $(window).height();
    a = $(this).offset().top;
    img = $(this).parent().parent().parent().parent().find('.imgtopa img').attr('src');;
    $(this).parent().parent().parent().parent().find('.imgtopa').append('<img style="display:none,z-index:9999;border-radius:50%" class="flyshot" src="'+img+'">');
    $('.flyshot').css('position', 'fixed').show();
    $('.flyshot').css({
      width: 70,
      height:70,
    });
    $('.flyshot').animate({
      bottom: 50,
      right: 0},
      500, function() {
      
    });
  });

  $('#shala').click(function() {
    if ($(this).attr('data') == 1) {
      $(this).attr('data', '');
      $('#cart').animate({right:-230}, 500,function(){
        $('.panel-body').stop().animate({height:0}, 500);
      })
    }else{
      $(this).attr('data', '1');
       $('#cart').animate({right:0}, 500,function(){
          $('.panel-body').stop().animate({height:'190'}, 500,function(){
        $('.panel-body').stop().animate({height:'100%'},500);
        });
       })
    
    } 
  });

</script>
<!-- 瀑布流代码 -->
 </body>
</html>